package com.oil.petro.eshop.service;

import com.oil.petro.eshop.bean.BasicBean;
import com.oil.petro.eshop.bean.ProductBean;
import com.oil.petro.eshop.entity.Category;
import com.oil.petro.eshop.entity.Product;
import java.util.List;

public interface ProductService {
    
    public Product getProduct(int id);

    public void deleteProduct(Product product);
    
    public void deleteProduct(int productId);
    
    public int saveProduct(Product product);
    
    public void updateProduct(Product product);
    
    public List<Category> getCategoryList();
    
    public List<Product> getProductList(int amount,int page);
    
    public List<Product> getProductList(int status);
    
    public List<Product> getProductListForCategory(int categoryId);
    
    public List<Product> searchProductList (BasicBean basicBean,int amount, int pageNumber);
    
    public boolean isNextProductListPage(int amount, int page);
    
    public boolean isNextSearchProductListPage(BasicBean basicBean, int amount, int page) ;
         
    public boolean updateProduct(ProductBean productBean, Product product);
         
    public List<Product> getProductListForNewAndUnavailable();

    public List<Product> getProductListForEdit();
              
}
